//
//  HMTempController.swift
//  WeiBo
//
//  Created by 李立达 on 15/12/5.
//  Copyright © 2015年 heima11. All rights reserved.
//

import UIKit

class HMTempController: UIViewController {

    
    override func viewDidLoad() {
        
        view.backgroundColor = UIColor.redColor()
        
        title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
        navigationItem.rightBarButtonItem = UIBarButtonItem( title: "PUSH", target: self, anction: "PushClick")
        
    }
    
    
    @objc func PushClick() {
    
        let vc = HMTempController()
        
      self.navigationController?.pushViewController(vc, animated: true)
        
    }
}
